export function dalogAnimation (that) {
    // let systemInfo =wx.getSystemInfoSync()
    let animation =wx.createAnimation({
      duration:300,
      timingFunction : "ease"
    })
    animation.opacity(0).bottom(0).step()
    that.setData({
      animationData :animation.export()
    })
    setTimeout(()=>{
      // animation.translateY(-122 * systemInfo.windowWidth / 375).opacity(0.7).step()
      animation.backgroundColor("black").opacity(0.65).step()
      that.setData({
        animationData:animation.export()
      })
    },200)
}
export function stopDalogAnimation (that) {
  // let systemInfo =wx.getSystemInfoSync()
  let animation =wx.createAnimation({
    duration:300,
    timingFunction : "ease"
  })
  animation.opacity(0).bottom(0).step()
  that.setData({
    animationData :animation.export()
  })
  setTimeout(()=>{
    // animation.translateY(-122 * systemInfo.windowWidth / 375).opacity(0.7).step()
    animation.bottom("-2000rpx").step()
    that.setData({
      animationData:animation.export()
    })
  },200)
}

export function dalogContentAnimation (that) {
  // let systemInfo =wx.getSystemInfoSync()
  let animation =wx.createAnimation({
    duration:500,
    timingFunction : "ease-in"
  })
  
  animation.opacity(0).bottom(0).step()
  that.setData({
    dalogContentAnimation :animation.export()
  })
  setTimeout(()=>{
    // animation.translateY(-122 * systemInfo.windowWidth / 375).opacity(0.7).step()
    animation.height("800rpx").opacity(1).backgroundColor("#FFFFFF").step()
    that.setData({
      dalogContentAnimation:animation.export()
    })
  },200)
}
export function stopDalogContentAnimation (that) {
  // let systemInfo =wx.getSystemInfoSync()
  let animation =wx.createAnimation({
    duration:500,
    timingFunction : "ease-in"
  })
  
  animation.opacity(0).bottom(0).step()
  that.setData({
    dalogContentAnimation :animation.export()
  })
  setTimeout(()=>{
    // animation.translateY(-122 * systemInfo.windowWidth / 375).opacity(0.7).step()
    animation.height("0").bottom("-2000rpx").opacity(0).backgroundColor("#FFFFFF").step()
    that.setData({
      dalogContentAnimation:animation.export()
    })
  },200)
}
